using System.Collections.Generic;

namespace SpiderMaster.AspNet.TradingSystem
{
    public partial class TradingCenterProfileCommon
    {
        /// <summary> Gets the Profile Errors for a Requested User if any. </summary>
        [ReganSchroder(7, 10, 2009, 5, 10, 2009)]
        private List<string> GetErrors()
        {
            List<string> ErrorContent = new List<string>();

            if (IsAdministrator)
            { }

            // TODO:
            //if (Age.Years.IsAtLeast(100))
            //    if (Age.Years.IsAtLeast(500))
            //        ErrorContent.Add("According to our records your age is " + Age.Years + " years old. Please Contact us before your Account is Closed! This maybe in our error...");
            //    else ErrorContent.Add("Your Age is Invalid!! To gain access to Age Registricted Areas and other Restricted areas you will need to provide your BirthDate");
            //else if (Age.Years.IsNoMoreThan(18))
            //    ErrorContent.Add(DomainSettings.Current.SiteName + " Does not allow Members under the age of 18, Please contact us before your account is closed.");

            if (string.IsNullOrEmpty(ResidentialDetails.StreetNumber))
                ErrorContent.Add("Your residential street number needs updated");

            if (string.IsNullOrEmpty(ResidentialDetails.StreetName))
                ErrorContent.Add("Your residential street name needs updated");

            // TODO: Set Member to Un Approved - Email Information, perhaps we could pop up to user
            // with a request to contact us! (thought on Age)
            return ErrorContent;
        }
    }
}